package com.sjgl.esdn.mapper;


import com.sjgl.esdn.domain.entity.uc.UCFileBoxroom;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @Author: cjb
 * @Date: 2022-09-01 10:31
 **/
@Mapper
public interface FileBoxroomMapper {


    /**
     * 通过文件id获取文件收藏夹集合
     *
     * @param fileId 文件Id
     * @return {@link List}<{@link UCFileBoxroom}>
     */
    List<UCFileBoxroom> selectByFileId(@Param("fileId") Long fileId);


    /**
     * 获取时间通过主键
     *
     * @param fileId    文件标识
     * @param boxroomId 储藏室id
     * @return {@link Date}
     */
    Date selectTimeByKey(@Param("fileId") Long fileId, @Param("boxroomId") Long boxroomId);



}